package com.ruoyi.caiwu.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 科目对象 accounting_subjects
 *
 * @author ruoyi
 * @date 2025-02-25
 */
public class AccountingSubjects extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 科目的唯一标识 */
    private Long subjectId;

    /** 科目编码 */
    @Excel(name = "科目编码")
    private String subjectCode;

    /** 科目名称 */
    @Excel(name = "科目名称")
    private String subjectName;

    /** 科目类型id */
    @Excel(name = "科目类型id")
    private Long subjectTypeId;

    /** 余额方向 */
    @Excel(name = "余额方向")
    private String balanceDirection;

    /** 科目上级id */
    @Excel(name = "科目上级id")
    private Long parentId;

    /** 所属账套id */
    @Excel(name = "所属账套id")
    private Long accountId;

    /** 科目时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "科目时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    public void setSubjectId(Long subjectId)
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId()
    {
        return subjectId;
    }
    public void setSubjectCode(String subjectCode)
    {
        this.subjectCode = subjectCode;
    }

    public String getSubjectCode()
    {
        return subjectCode;
    }
    public void setSubjectName(String subjectName)
    {
        this.subjectName = subjectName;
    }

    public String getSubjectName()
    {
        return subjectName;
    }
    public void setSubjectTypeId(Long subjectTypeId)
    {
        this.subjectTypeId = subjectTypeId;
    }

    public Long getSubjectTypeId()
    {
        return subjectTypeId;
    }
    public void setBalanceDirection(String balanceDirection)
    {
        this.balanceDirection = balanceDirection;
    }

    public String getBalanceDirection()
    {
        return balanceDirection;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setAccountId(Long accountId)
    {
        this.accountId = accountId;
    }

    public Long getAccountId()
    {
        return accountId;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("subjectId", getSubjectId())
            .append("subjectCode", getSubjectCode())
            .append("subjectName", getSubjectName())
            .append("subjectTypeId", getSubjectTypeId())
            .append("balanceDirection", getBalanceDirection())
            .append("parentId", getParentId())
            .append("accountId", getAccountId())
            .append("createdAt", getCreatedAt())
            .toString();
    }
}
